package com.future.lock.common;

import android.os.Environment;

import com.future.lock.home.entity.bean.GateWay;
import com.future.lock.home.entity.bean.Lock;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * 常量类
 */

public class Constants {

    public static List<Lock> lockList = new ArrayList<>();
    public static List<GateWay> gatewayList = new ArrayList<>();

    public static final int REFRESH_LOCK_DATA = 1001;
    public static final int LOCK_OPEN = 1002;
    public static final int RED_POINT = 1003;
    public static final int RED_POINT_NO = 1004;

    public static final String NEWS_URL = "http://116.62.142.20/Info/detail/id/";
    public static final String REGISTER_PROTOCOL_URL = "http://116.62.142.20/Public/zcxy";

    public static Boolean isWaiting = false;

    public static final String ICON_PATH = Environment.getExternalStorageDirectory().getAbsolutePath()
            + File.separator+"lock"+File.separator+"people_icon.jpg";

    public static final String BASE_URL = "http://116.62.142.20/";

    public static final String PATH = "index.php?s=";
    public static final String PATH_LOGIN = PATH+"/Public/login";//登录
    public static final String PATH_WECHAT_LOGIN = PATH+"/Public/wxlogin";//wechat登录
    public static final String PATH_GET_CODE = PATH+"/Public/sendCode";//发送验证码

    public static final String PATH_UPDATE_USERINFO = PATH+"/Users/userInfo";//更新个人信息
    public static final String PATH_GET_COLLECT_LIST = PATH+"/Users/getCollectList";//获取我的收藏列表
    public static final String PATH_SET_USERINFO = PATH+"/Users/setUserInfo";//设置头像昵称
    public static final String PATH_GET_INFO_LIST = PATH+"/Info/getlist";//获取资讯列表
    public static final String PATH_GET_SERVICE_PHONE = PATH+"/Public/kefudianhua";//获取客服电话
    public static final String PATH_GET_ORDER_NUM= PATH+"/Order/getUserOrder";//获取各种订单数量

    public static final String PATH_GET_GATEWAY_LIST = PATH+"/GateWay/getlist";//网关列表
    public static final String PATH_ADD_GATEWAY = PATH+"/GateWay/add";//添加网关
    public static final String PATH_DEL_GATEWAY = PATH+"/GateWay/del";//添加网关
    public static final String PATH_ADD_GATEWAY_FAIL = PATH+"/Public/lianjieshibai";//网关链接失败文本


    public static final String PATH_GET_LOCK_LIST = PATH+"/Lock/getlist";//智能锁列表
    public static final String PATH_ADD_LOCK = PATH+"/Lock/add";//添加智能锁
    public static final String PATH_DEL_LOCK = PATH+"/Lock/del";//删除智能锁
    public static final String PATH_OPEN_LOCK = PATH+"/Lock/remoteUnlock";//开锁
    public static final String PATH_UPDATE_LOCK_NAME = PATH+"/Lock/setName";//修改智能锁名称
    public static final String PATH_GET_LOCK_USER = PATH+"/Lock/lockuser";//获取用户列表
    public static final String PATH_SET_LOCK_USER_REMARK = PATH+"/Lock/setRemark";//设置锁用户昵称


    public static final String PATH_GET_LOCK_NOTES_LIST = PATH+"/Lock/loglist";//开锁记录列表
    public static final String PATH_CLEAR_LOCK_NOTES_LIST = PATH+"/Lock/clearLog";//清空开锁记录

    public static final String PATH_GET_ORDER_LIST= PATH+"/Order/getlist";//获取用户订单列表
    public static final String PATH_GET_ORDER_DETAIL= PATH+"/Order/orderInfo";//获取订单详情
    public static final String PATH_GET_GOODS_DETAIL= PATH+"/Index/goodsInfo";//获取商品详情
    public static final String PATH_GET_SHARE_BUNUS= PATH+"/Public/fenxianglijian";//获取分享立减金额
    public static final String PATH_GET_SHARE_INFO= PATH+"/Public/fenxiang";//获取分享
    public static final String PATH_GET_AREA= PATH+"/Public/getArea";//获取省市区信息
    public static final String PATH_GET_INSTALL_FEE= PATH+"/Public/getInstallFee";//获取该区域安装费
    public static final String PATH_GET_KEFUDH= PATH+"/Public/kefudianhua";//获取客服电话
    public static final String PATH_GET_ZENGZHIFUWW= PATH+"/Public/shiyong";//获取增值服务说明
    public static final String PATH_CREATE_ORDER= PATH+"/Order/add";//创建订单
    public static final String PATH_GET_ADDED_FEE= PATH+"/Public/getAddedFee";//获取增值服务费
    public static final String PATH_GET_INSTALL_AREA_DESC= PATH+"/Public/getInstallArea";//获取增值服务费
    public static final String PATH_GET_PAY_INFO= PATH+"/Order/getPayInfo";//获取订单的支付信息
    public static final String PATH_SET_ORDER_STATUS= PATH+"/Order/setOrderStatus";//修改订单状态
    public static final String PATH_GET_REFUND_INFO= PATH+"/Public/tuiyajin";//获取退款说明
    public static final String PATH_GET_ADDRESS= PATH+"/Users/getAddress";//获取用户上次填写的收货地址

    public static final String PATH_HAS_MESSAGE= PATH+"/Lock/getMsgNum";//是否有未读消息
    public static final String PATH_LUNXUN_LOCK_OPEN= PATH+"/Lock/remoteUnlockStatus";//轮训开锁状态

}
